package com.lanou.zhihu.mapper;

import com.lanou.zhihu.entity.Answer;

import java.util.List;
import java.util.Map;

/**
 * Created by QuChao on 2018/10/26.
 */
public interface AnswerMapper {
    Integer insert(Answer answer);

    Answer findByUidAid(Map<String, Object> map);

    Integer deleteById(Integer aid);

    List<Answer> findByQid(Integer qid);

    List<Answer> findByQidState(Integer qid);

    Integer updateStateByAid(Integer aid);

    List<Answer> findbyUid(Integer uid);
}
